<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout"
      layout:decorator="manage/manage_layout" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">

<head>
    <title>功能管理</title>
</head>

<body class="manage manage-func">

<div layout:fragment="content">
    <div class="container-fluid">
        <nav class="navbar navbar-default">
            <div class="container-fluid">
                <div class="navbar-header">
                    <a class="navbar-brand" href="#">功能管理</a>
                </div>
                <form class="navbar-form navbar-left" role="search">
                    <div class="form-group">
                        <label for="searchkey" class="sr-only">请输入查询关键字</label>
                        <input type="text" class="form-control search-input-w1" id="searchkey" name="searchkey"
                               placeholder="请输入任意查询关键字(功能ID/功能名称.......)">
                        <input type="text" class="dn"><!--防止form回车自动提交-->
                    </div>
                    <div class="form-group">
                        <label for="status" class="sr-only">状态</label>
                        <select id="status" name="status" class="form-control">
                            <option value="">请选择状态</option>
                            <option value="0">下线</option>
                            <option value="1">上线</option>
                        </select>
                    </div>
                    <button type="button" class="btn btn-primary" id="btnSearch">查询</button>
                    <button type="reset" class="btn btn-default">清空</button>
                </form>
            </div>
        </nav>

        <div class="table-box">
            <div id="toolbar" class="table-toolbar">
                <a shiro:hasPermission="/manage/func/add"
                   href="javascript:Base.dialogIframe('功能新增' ,'/manage/func/add/index')" class="btn"> <i
                        class="glyphicon glyphicon-plus"></i> 新增</a>
                <span shiro:hasPermission="/manage/func/add" class="line">|</span>

                <a shiro:hasPermission="/manage/func/modify" href="javascript:void(0);" class="btn"
                   onclick="onlineBatchDialog();"><i class="glyphicon glyphicon-arrow-up"></i> 上线</a>
                <span shiro:hasPermission="/manage/func/modify" class="line">|</span>

                <a shiro:hasPermission="/manage/func/modify" href="javascript:void(0);" class="btn"
                   onclick="offlineBatchDialog();"><i class="glyphicon glyphicon-arrow-down"></i> 下线</a>
                <span shiro:hasPermission="/manage/func/modify" class="line">|</span>

                <a shiro:hasPermission="/manage/func/download" href="javascript:void(0);" class="btn"
                   onclick="exportDialog();"><i class="glyphicon glyphicon-export"></i> 导出</a>
            </div>
            <table id="table"></table>
        </div>
    </div>

    <script th:replace="common/common_libs::commonjs"></script>
    <script src="/libs/bootstrap-table/bootstrap-table-treegrid2.js"></script>
    <script src="/js/manage/func.js"></script>
    <script>
        initTable();
    </script>
</div>

</body>
</html>